/*var n1=Number('2');//2
var n2=Number('2a');//NAN
var n3=Number('true');//1
var n4=Number('flase');//0
var n5=Number(undefined);//NAN
var n6=Number(null);//0
console.log(n5,n6);

var m1=parseInt(3.94);//3
var m2=parseInt('2.58');//2

var m3=parseInt('6.18a');//6
var m4=parseInt('a6.18');//NAN
console.log(m4);

var a=parseFloat('3a');//3
var b=parseFloat('3.14');//3.14
var c=parseFloat('a3.14');//NAN
console.log(a);*/

var num=true;
//将number转为字符串
var str=num.toString();
console.log(str,typeof str);
